package com.qc.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.qc.dao.BossIndustryDao;
import com.qc.entity.BossIndustryEntity;
import com.qc.service.BossIndustryService;

@Service("bossIndustryService")
public class BossIndustryServiceImpl implements BossIndustryService{

    @Resource(name="bossIndustryDao")
    private BossIndustryDao bossIndustryDao;
    
    @Override
    public int getListBossIndustryCount(String name) {

        return bossIndustryDao.getListBossIndustryCount(name);
    }

    @Override
    public List<BossIndustryEntity> getAllBossIndustry(String name, int pageNo,int pageSize) {

        return bossIndustryDao.getAllBossIndustry(name, pageNo, pageSize);
    }

    @Override
    public BossIndustryEntity getBossIndustryId(String industryId) {

        return bossIndustryDao.getBossIndustryId(industryId);
    }

    @Override
    public int saveBossIndustry(BossIndustryEntity bossIndustry) {

        return bossIndustryDao.saveBossIndustry(bossIndustry);
    }

    @Override
    public int deleteBossIndustryId(long id) {

        return bossIndustryDao.deleteBossIndustryId(id);
    }

    @Override
    public int updateBossIndustryId(BossIndustryEntity bossIndustry) {

        return bossIndustryDao.updateBossIndustryId(bossIndustry);
    }

	@Override
	public List<BossIndustryEntity> getAllBossIndustry() {
		return bossIndustryDao.getAllBossIndustry();
	}

}
